package com.wrupple.muba.catalogs.client.events.catalog;

import com.google.gwt.event.shared.GwtEvent;
import com.wrupple.muba.catalogs.domain.CatalogEntry;

public class EntryCreatedEvent extends GwtEvent<EntryCreatedEventHandler> {
	private static Type<EntryCreatedEventHandler> type;
	public CatalogEntry entry;

	public EntryCreatedEvent(CatalogEntry result) {
		this.entry = result;
	}

	@Override
	protected void dispatch(EntryCreatedEventHandler handler) {
		handler.onEntryCreated(this);
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EntryCreatedEventHandler> getAssociatedType() {
		return getType();
	}

	public static com.google.gwt.event.shared.GwtEvent.Type<EntryCreatedEventHandler> getType() {
		if(type==null){
			type=new Type<EntryCreatedEventHandler>();
		}
		return type;
	}


}
